package com.mall.autoconfig;

import com.mall.autoconfig.properties.OssProperties;
import com.mall.autoconfig.template.OssTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @author : xyiaao
 * @createDate : 2022/3/30 9:43
 */
@EnableConfigurationProperties({
        OssProperties.class
})
public class MallAutoConfiguration {

    @Bean
    public OssTemplate ossTemplate(OssProperties properties) {

        return new OssTemplate(properties);
    }

}
